package b.l.a;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;

/* compiled from: FragmentManagerImpl */
public class k extends AnimatorListenerAdapter {
    public final /* synthetic */ ViewGroup a;
    public final /* synthetic */ View b;
    public final /* synthetic */ Fragment c;
    public final /* synthetic */ i d;

    public k(i iVar, ViewGroup viewGroup, View view, Fragment fragment) {
        this.d = iVar;
        this.a = viewGroup;
        this.b = view;
        this.c = fragment;
    }

    public void onAnimationEnd(Animator animator) {
        this.a.endViewTransition(this.b);
        animator = this.c.g();
        this.c.d0(null);
        if (animator != null && this.a.indexOfChild(this.b) < 0) {
            i iVar = this.d;
            Fragment fragment = this.c;
            iVar.h0(fragment, fragment.w(), 0, 0, false);
        }
    }
}
